package com.cfc.stage1;

import org.junit.Test;

/**
 * @description:
 * @author: yangxuan10
 * @create: 2024-05-20 14:02
 **/
public class MinOperations {

    @Test
    public void test1() {
        int [] a = new int[]{1,3,5,6};
        System.out.println(minOperations(a,4));
    }

    public int minOperations(int[] nums, int k) {
        int deleteCount = 0;
//        int numLength = nums.length;
        for (int i = 0; i < nums.length; i++) {
            if (k > nums[i]) {
                deleteCount++;
            }
        }
        return deleteCount;
    }

}